package edu.hziee.ProductionUtils;

import edu.hziee.model.production;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

public class ProductionUtils {
    private  static Map<String, production> map = new HashMap<String, production>();
    static {
        map.put("1",new production("1","huawei",5000));
        map.put("2",new production("2","apple",10000));
        map.put("3",new production("3","xiaomi",4000));
    }

    public static Collection<production> getproductions() {
        return map.values();
    }

    public static production getproductionById(String id){
        return map.get(id);
    }
}
